package com.saikei.statstitlebar

import android.graphics.Color
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.util.Log

class MainActivity : AppCompatActivity() {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)

        val bar = findViewById<TitleBlock>(R.id.bar);
        val initWithLeftMenu = BarMenu.getInstance().initWithLeftMenu();
        initWithLeftMenu.leftAdd(R.mipmap.black_back_mipmap)
        bar.createLeftBody(initWithLeftMenu)

        val initWithRightMenu = BarMenu.getInstance().initWithRightMenu();
        initWithRightMenu.rightAdd("更多")
        bar.createRightBody(initWithRightMenu)

        bar.createEditText()

    }


}